//============================================================================
//	警告: 这个文件是使用2009-8-28 17:56:54建立的IBatisNetGen.DaoIntf.cst生成的.
//				重新生成时,原先手动做的修改将会丢失.
//============================================================================
using System;
using System.Collections.Generic;
using System.Text;
using Bino.ExamOnline.Components.Entitys;

namespace Bino.ExamOnline.Components.Interface 
{
    /// <summary><c>ITeacherDao</c>是<see cref="Bino.ExamOnline.Components.Entitys.Teacher, Bino.ExamOnline.DataProvider"/>的数据层接口.</summary>
    public interface ITeacherDao {        

		/// <summary>获取数据库表记录数.</summary>
		int GetTeachersCount();

		/// <summary>使用主键查询 <see cref="Teacher"/> 对象.</summary>
		Teacher GetTeacher(Int32 iD);


		/// <summary>获取所有 Teacher 的集合.</summary>
		IList<Teacher> GetAllTeachers();


		/// <summary>插入 Teacher 对象到数据库表.</summary>
		void CreateTeacher(Teacher obj);		

		/// <summary>更新数据库 Teacher 对象.</summary>
		void UpdateTeacher(Teacher obj);

        void UpdateTeacher(Teacher obj, bool isUpdatePassword);

		/// <summary>从数据库中删除 Teacher 对象.</summary>
		void DeleteTeacher(Teacher obj);

        /// <summary>根据 <see cref="Teacher.ID"/> 删除 <see cref="Teacher"/> 对象 </summary>
		int DeleteTeacherByID(Int32 iD);

		/// <summary>从数据库中重新加载 Teacher 对象.</summary>
		void ReloadTeacher(Teacher obj);
        
        /// <summary>
        /// 教师、管理员登录
        /// </summary>
        /// <param name="UserName"></param>
        /// <param name="UserPassword"></param>
        /// <returns></returns>
        int LoginTeacher(String UserName, String UserPassword,int UserType);
	}

}
